package com.happy.study.util;

/**
 * @Author: Wuzh
 * @Description:
 * @Date Created in 21:44 2020/8/5
 * @return
 */
public enum StateEnum {

    SUCCESS ( "000000", "执行成功" ),
    REQUEST_PARAM_EXCE ( "0000001", "请求参数为空异常" ),
    RESULT_NULL_EXCE ( "000002", "结果为空异常" ),
    PRIMARY_NULL_EXCE ( "000003", "主键为空异常" ),
    INSERT_EXCE ( "000004", "插入失败异常" ),
    DELETE_EXCE ( "000005", "删除失败异常" ),
    UPDATE_EXCE ( "000006", "修改失败异常" ),
    FILE_NULL_EXCE ( "000100", "文件为空异常" ),
    VERIFICATION_EXCE ( "000301", "验证码异常" ),
    REQUEST_POWER_EXCE ( "000403", "无请求权限" ),
    ERROR ( "999999", "系统错误" );

    private String code;
    private String message;

    StateEnum ( String code, String message ) {
        this.code = code;
        this.message = message;
    }

    public String getCode () {
        return code;
    }

    public void setCode ( String code ) {
        this.code = code;
    }

    public String getMessage () {
        return message;
    }

    public void setMessage ( String message ) {
        this.message = message;
    }
}
